<?php

namespace common\models\hiss;

use Yii;


class Model extends \yii\db\ActiveRecord
{

    public static $tableName;

    public static function setTableName($tableName)
    {
        self::$tableName = $tableName;
    }



    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return self::$tableName;
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db4');
    }


}
